< previous page page_250 next page >

Page 250
Creating a Database with the Visual Data Manager
After you design the database, the next step is to actually create it. When using Visual Basic, you can use two different methods to create a database: by using the Data Access Objects within a program and by using the Visual Data Manager included with Visual Basic.
You can use Visual Basic's Data Access Objects (DAO) in your application to access the data in an existing database or in a program written to create a database for use by your application. Writing programs that create databases can be an entire development effort all by itself. Unless you need to build the database when the application is executed the first time, it's usually better to create the empty database structure and include it with your application files.
Note
Most databases will not allow you to create new tables or columns using the Visual Basic access methods, you must use the utilities that are included with that database or you must code the SQL DDL scripts that will add the necessary objects.

The Visual Data Manager provides you with an interactive tool to create and modify databases on your computer. You can use this tool to create the database structure that you've designed for your application. However, depending on the database that you've chosen to work with, the Visual Data Manager might not be the right tool for the job.
Other databases that the Visual Data Manager can work with are as follows, although many databases come with their own tools:
dBASE
FoxPro
Paradox
Remote ODBC databases
Also, the Visual Data Manager source project is included in the Visual Basic samples directory. By examining this project, you can learn quite a bit about creating a database application.

 
< previous page page_250 next page >

If you like this book, buy it!